package com.amigo.online.provider.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import com.amigo.online.common.core.mybatis.MyMapper;
import com.amigo.online.provider.user.model.entity.Hobby;


@Mapper
@Component
public interface HobbyMapper extends MyMapper<Hobby> {

    @Select("select * from hobby_tbl where hobby_type = #{type} and deleted = 0")
    List<Hobby> findHobbyByType(@Param("type") Integer type);
}
